﻿<Window x:Class="WpfStudy.StudyDataView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="StudyDataView" Height="300" Width="500">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150"></ColumnDefinition>
            <ColumnDefinition Width="1*"></ColumnDefinition>
        </Grid.ColumnDefinitions>
        
        <TextBlock Text="Name:" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5"></TextBlock>
        <TextBox Text="{Binding Name}" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" MinWidth="150"></TextBox>

        <TextBlock Text="Address:" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5"></TextBlock>
        <TextBox Text="{Binding Address}" Grid.Row="1" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" MinWidth="250"></TextBox>

        <TextBlock Text="Phone:"  Grid.Row="2"  VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5"></TextBlock>
        <TextBox Text="{Binding Phone}" Grid.Row="2" Grid.Column="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" MinWidth="150"></TextBox>

        <TextBlock Text="Search:"  Grid.Row="3"  VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5"></TextBlock>
        <ComboBox Name="cmbList" Grid.Row="3" Grid.Column="1" DisplayMemberPath="Name" 
                  VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5" MinWidth="120" SelectionChanged="cmbList_SelectionChanged"></ComboBox>
        
        <StackPanel Grid.Row="4" Grid.Column="1" VerticalAlignment="Bottom" HorizontalAlignment="Center" Orientation="Horizontal">
            <Button Content="Pre" Margin="5" Name="btnPre" Click="btnPre_Click_1"></Button>
            <TextBlock Name="txtPosition" VerticalAlignment="Center"></TextBlock>
            <Button Content="Next" Margin="5" Name="btnNext" Click="btnNext_Click_1"></Button>
        </StackPanel>
    </Grid>
</Window>
